package com.qtcm.nas.zhb.bendianyuyue.service.impl;

import com.qtcm.nas.zhb.bendianyuyue.dao.SubscribeDao;
import com.qtcm.nas.zhb.bendianyuyue.pojo.Subscribe;
import com.qtcm.nas.zhb.bendianyuyue.service.ISubscriService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("subscriService")
public class SubscriService implements ISubscriService {
    @Autowired
    @Qualifier("subscribeDao")
    private SubscribeDao subscribeDao;

    @Override
    public List<Subscribe> findAll() {
        System.out.println("aaaaaaaaaaaaaaaa"+subscribeDao);
        return subscribeDao.findAll();
    }

    @Override
    public Subscribe subById(int G_Appointment_no) {
        return subscribeDao.subById(G_Appointment_no);
    }

    @Override
    public int ubupda(Subscribe subscribe) {
        return subscribeDao.ubupda(subscribe);
    }

    @Override
    public List<Subscribe> fuzzy(Subscribe subscribe) {
        return subscribeDao.fuzzy(subscribe);
    }

    @Override
    public List<Subscribe> make() {
        return subscribeDao.make();
    }
}
